package com.glsc.ngateway.oaflow.schedule;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.glsc.ngateway.common.xir.domain.TtrdSetInstructionCash;
import com.glsc.ngateway.common.xir.repo.TtrdSetInstructionCashRepository;

import lombok.extern.slf4j.Slf4j;

/**
 * @author houzhc
 * @description: 恒泰拆借任务
 * @date 2024年07月04日
 */
@Slf4j
@Component
public class HengTaiTradeTask {

    @Autowired
    private TtrdSetInstructionCashRepository ttrdSetInstructionCashRepository;

    // @Scheduled(cron = "0 0/15 * * * ?")
    public void lendingTask() {
        List<TtrdSetInstructionCash> byDateAndState = ttrdSetInstructionCashRepository.findByDateAndState("20240714", "0");

        List<TtrdSetInstructionCash> byDateAndState1 = ttrdSetInstructionCashRepository.findByDateAndState("20240714", "1");
    }
}
